package com.chenchen.subject.application.convert;


import com.chenchen.subject.application.dto.SubjectAnswerDto;
import com.chenchen.subject.domain.entity.SubjectAnswerBo;
import org.mapstruct.Mapper;
import org.mapstruct.factory.Mappers;

import java.util.List;

/**
 * 题目答案dto转换器
 * 
 * @author: ChickenWing
 * @date: 2023/10/8
 */
@Mapper
public interface SubjectAnswerDtoConverter {

    SubjectAnswerDtoConverter INSTANCE = Mappers.getMapper(SubjectAnswerDtoConverter.class);

    SubjectAnswerBo convertDtoToBo(SubjectAnswerDto subjectAnswerDto);

    List<SubjectAnswerBo> convertListDtoToBo(List<SubjectAnswerDto> dtoList);

}
